home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HiJaak Graphics Suite 3.0
/
HiJaak Graphics Suite V3.iso
/
inset
/
spots.pdp
< prev
next >
Wrap
Text File
|
1992-04-14
|
3KB
|
121 lines
%GSSpots: Dot1, Default Dots
/Dot1 { %def: The default screen on PS 38.0 and up
abs exch abs 2 copy add 1 gt { 1 sub dup mul exch
1 sub dup mul add 1 sub } {dup mul exch dup mul add
1 exch sub} ifelse
} bind def
%GSEnd
%GSSpots: Dot2, Corner Out Dots
/Dot2 { %def: do dot from corners into centre
abs exch abs 1 sub dup mul exch 1 sub dup mul add 1 sub
} bind def
%GSEnd
%GSSpots: Triangle, Triangles
/Triangle {
2 exch sub exch abs 2 mul sub 3 div
} bind def
%GSEnd
%GSSpots: Ellipse, Long Ellipse
/Ellipse { %def: longer ellipse
2 mul abs exch dup mul add 3 div 2 mul 1 exch sub
} bind def
%GSEnd
%GSSpots: Ellipse2, Ellipse
/Ellipse2 { %def: more rounder ellipse
1.4 mul abs exch dup mul add 3 div 2 mul 1 exch sub
} bind def
%GSEnd
%GSSpots: Diamond, Diamonds
/Diamond {
abs exch abs add 1 exch sub
} bind def
%GSEnd
%GSSpots: Square, Squares
/Square {
abs exch abs exch 2 copy lt { exch pop } { pop } ifelse
} bind def
%GSEnd
%GSSpots: Spiral5, 5 Spoked Propeller
/Spiral5 {
/y exch def
/x exch def
/theta y x .001 add atan cvi def
theta 72 mod 72 sub abs 72 div
y y mul x x mul add 1 exch sub add 2 div
} bind def
%GSEnd
%GSSpots: Spiral10, 10 Spoked Propeller
/Spiral10 { %def: 10 spoked propeller - REALLY NEAT!!!
/y exch def
/x exch def
/theta y x .001 add atan cvi def
theta 36 mod 36 sub abs 60 div
y y mul x x mul add 1 exch sub add 2 div
} bind def
%GSEnd
%GSSpots: Ducks, Cute Duck Shapes
/Ducks { %def: actually a Spiral3 - not very useful, but cute!
/y exch def
/x exch def
/theta y x .001 add atan cvi def
theta 144 mod 144 sub abs 144 div
y y mul x x mul add 1 exch sub add 2 div
} bind def
%GSEnd
%GSSpots: Line, Lines
/Line { %def: TKK's definition of a Line
pop
} bind def
%GSEnd
%GSSpots: TwoCirc1, White Rings
/TwoCirc1 { %def:
dup mul exch dup mul add 0.65 exch sub abs 0.5 mul
} bind def
%GSEnd
%GSSpots: TwoCirc2, Black Rings
/TwoCirc2 { %def: slightly improved Corel OutCircWht
dup mul exch dup mul add 0.65 exch sub abs -0.5 mul
} bind def
%GSEnd
%GSSpots: Waves1, In-Phase Waves
/Waves1 { %
/e exch def
180 mul sin 2 div e dup dup dup mul mul sub mul e add 180 mul sin
} bind def
%GSEnd
%GSSpots: Waves2, Out-Of-Phase Waves
/Waves2 {
/e exch def
180 mul cos 2 div e dup dup dup mul mul sub mul e add 180 mul cos
} bind def
%GSEnd
%GSSpots: Grids, Grids
/Grids { %
2 copy abs exch abs gt {exch} if pop 2 mul 1 exch sub 3.5 div
} bind def
%GSEnd